package com.bean;

public class Subsidy {
    private  Integer subsidyId;
    private  String subsidyProjectName;
    private Integer subsidySubjectId;
    private Integer countrysideDepartmentId;
    private Integer cityDepartmentId;
    private boolean flag = false;

    public Subsidy() {
    }

    public Subsidy(Integer subsidyId, String subsidyProjectName, Integer subsidySubjectId, Integer countrysideDepartmentId, Integer cityDepartmentId, Integer flag) {
        this.subsidyId = subsidyId;
        this.subsidyProjectName = subsidyProjectName;
        this.subsidySubjectId = subsidySubjectId;
        this.countrysideDepartmentId = countrysideDepartmentId;
        this.cityDepartmentId = cityDepartmentId;

        if(flag > 0)
            this.flag = true;
    }

    public Integer getSubsidyId() {
        return subsidyId;
    }

    public void setSubsidyId(Integer subsidyId) {
        this.subsidyId = subsidyId;
    }

    public String getSubsidyProjectName() {
        return subsidyProjectName;
    }

    public void setSubsidyProjectName(String subsidyProjectName) {
        this.subsidyProjectName = subsidyProjectName;
    }

    public Integer getSubsidySubjectId() {
        return subsidySubjectId;
    }

    public void setSubsidySubjectId(Integer subsidySubjectId) {
        this.subsidySubjectId = subsidySubjectId;
    }

    public Integer getCountrysideDepartmentId() {
        return countrysideDepartmentId;
    }

    public void setCountrysideDepartmentId(Integer countrysideDepartmentId) {
        this.countrysideDepartmentId = countrysideDepartmentId;
    }

    public Integer getCityDepartmentId() {
        return cityDepartmentId;
    }

    public void setCityDepartmentId(Integer cityDepartmentId) {
        this.cityDepartmentId = cityDepartmentId;
    }

    public boolean getFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "Subsidy{" +
                "subsidyId=" + subsidyId +
                ", subsidyProjectName='" + subsidyProjectName + '\'' +
                ", subsidySubjectId=" + subsidySubjectId +
                ", countrysideDepartmentId=" + countrysideDepartmentId +
                ", cityDepartmentId=" + cityDepartmentId +
                ", flag=" + flag +
                '}';
    }
}
